package com.totoro.microservice.service.impl;

import com.totoro.microservice.dao.UserDao;
import com.totoro.microservice.model.User;
import com.totoro.microservice.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Niki on 2018/10/17 15:56
 */
@Service
public class UserServiceImpl implements IUserService {
    @Resource
    UserDao userDao;
    @Override
    public User findById(Integer id) {
        return userDao.findById(id);
    }
}
